/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package session;

import entities.ResTable;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author TANGQUOCTUAN
 */
@Local
public interface ResTableFacadeLocal {

    void create(ResTable resTable);

    void edit(ResTable resTable);

    void remove(ResTable resTable);

    ResTable find(Object id);

    List<ResTable> findAll();

    List<ResTable> findRange(int[] range);

    int count();

    List showTable();

    List detailTables(Integer id);

    boolean insertTable(int resID, int noSeats, String description, String picture);

    boolean deleteTable(Integer tableNumber);

    boolean updateTable(int number ,int noSeats, int resID, String description, String picture);

    List getTableName();
}
